package com.study.studyroom.entity.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("room_order")
@AllArgsConstructor
@NoArgsConstructor
public class RoomOrder extends AbstractDomain{
    @TableField("user_id")
    private Integer userId;

    @TableField("room_id")
    private Integer roomId;

    @TableField("start_time")
    private Date startTime;

    @TableField("end_time")
    private Date endTime;

    @TableField("price")
    private BigDecimal price;

}
